all:
	ca65 -l andmodem.asm && ld65 -t none andmodem.o -o 52555.bin
	ca65 -l abiosys.asm && ld65 -t none abiosys.o -o 49152.bin
	ca65 -l epyxstart.asm && ld65 -t none epyxstart.o -o eprom8k.bin

send:	
	scp t.bin root@otter:

clean:
	rm -f *.o *.lst a.out map.out *.bin

archive:
	tar cvf SDCard-Abiosys-Andmodem-C64.tar SDCard-Abiosys-Andmodem-C64
	gzip -9v SDCard-Abiosys-Andmodem-C64.tar
	chmod 644 SDCard-Abiosys-Andmodem-C64.tar.gz
	scp SDCard-Abiosys-Andmodem-C64.tar.gz cjb@kildall.apana.org.au:public_html/C64/SDCard-Abiosys-Andmodem-C64.tar.gz

upload: all
	ssh root@otter "mount UUID=\"3505-18E3\" /mnt"
	scp eprom8k.bin root@otter:/mnt/eprom/
	scp eprom8k.bin root@otter:/tmp/
	ssh root@otter "ls -l /mnt/eprom/*bin"
	ssh root@otter "cmp /mnt/eprom/eprom8k.bin /tmp/eprom8k.bin"
	ssh root@otter "umount /mnt"

49152:	all
	scp 49152.bin root@otter:
	ssh root@otter "./andmodem 49152 49152.bin"
